package com.eastfair.imaster;

import com.eastfair.cache.CacheKeyDefinition;
import com.eastfair.core.model.CacheKeyBuilder;

import java.time.Duration;

/**
 * 系统用户 KEY
 * <p>
 * #d_tenant
 *
 * @author ligang
 * @date 2020/9/20 6:45 下午
 */
public class OrderCacheKeyBuilder implements CacheKeyBuilder {

    @Override
    public String getPrefix() {
        return CacheKeyDefinition.ORDER_IMASTER;
    }

    @Override
    public Duration getExpire() {
        return Duration.ofHours(24);
    }
}
